package bean.factorybean;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @Author com.alibaba.lizhen
 * @Date 2021/3/30 12:19 下午
 * @Version 1.0
 * @Description
 */
@Configuration
@ComponentScan
public class Config {
	/**
	 * 注入到IOC
	 * @return
	 */
	@Bean(name = "person")
	public Person getPerson() {
		return new Person("zhangsan",10);
	}
}
